
import request from "@/request/request.js";

/*
export function demo1(params) {
    return request({
        url: '',
        method: 'get',
        headers: {},
        timeout: 222,
        params: params
    })
}
*/

/*export const demo2 = (params) => {
    return request({
      url: '',
      method: 'post',
      params,
  })
}*/

/*
export class API {
    demo3 (params) {
        return request({
            url: '',
            method: 'post',
            params,
        })
    }
}
*/

// 获取大屏左侧数据
export function leftList() {
    return request({
        url: '/renwubusev/outInter/screen/deptMapList',
        method: 'get'
    })
}

// 获取事件列表数据
export function eventList(params) {
    return request({
        url: '/renwubusev/outInter/screen/eventList',
        method: 'get',
        params: params
    })
}

// 获取摄像头码流
export function cameraUrl(params) {
    return request({
        url: '/renwubusev/outInter/screen/getCameraUrl',
        method: 'get',
        params: params
    })
}

// 获取事件列表详情
export function eventDetail(params) {
    return request({
        url: '/renwubusev/outInter/screen/eventDetail',
        method: 'get',
        params: params
    })
}
